<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
$muid=58;
$nums=90;
//====================
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$muid."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
	
?>
</ul>
</div>


<?php if($_GET[message]==1){ ?>
<p id="Notice">
<span id="GetCode">
您的系统信息己成功更新。
</span>
</p>

<?php } ?>

<form name="save" method="post" action="?ac=index&fileurl=config&do=save" onSubmit="return save_config()">
<input type="hidden" name="savetype" value="edit" />
	<input type="hidden" name="id" value="1" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center">系统设置</td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td nowrap class="TableData" width="15%"> 公司名称：</td>
      <td class="TableData">
        <input type="text" name="name" class="BigInput" size="50" value="<?=$result['name']?>" /> 
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 公司网址：</td>
      <td class="TableData">
       <input type="text" name="web" class="BigInput" size="40" value="<?=$result['web']?>" /> <span>别忘了加上http://</span>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData">系统运行时间：</td>
      <td class="TableData"><select name="opendate" style="width:80px;">
			<?php 
			for($i=0;$i<=24;$i++)
			{
				echo '<option value="'.$i.'"  ';
				if ($result['opendate']==$i)
				{
				echo 'selected="selected"';
				}
				echo '>'.$i.'</option>';
			}
			?>
			  </select>
			到：
		  <select name="enddate" style="width:80px;">
			<?php 
			for($i=0;$i<=24;$i++)
			{
				echo '<option value="'.$i.'"  ';
				if ($result['enddate']==$i)
				{
				echo 'selected="selected"';
				}
				echo '>'.$i.'</option>';
			}
			?>
			  </select> 点 <span>不选择为24小时开启</span>
      </td>
    </tr>
    
    <tr>
      <td nowrap class="TableData"> 显示数量：</td>
      <td class="TableData">
       <input type="text" name="pagenum" class="input" size="20" value="<?=$result['pagenum']?>" /> <span>指系统分页数据的页数，通常为20条数据一页为佳</span>
      </td>
    </tr>
 
    <tr>
      <td nowrap class="TableData"> 系统开关：</td>
      <td class="TableData">
        <input type="radio" name="configflag" id="visible1" value="1" class="checkbox" <?=($result['configflag'] ? 'checked="checked"' : '')?> /><label for="visible1">开启</label> <input type="radio" name="configflag" id="configflag" value="0" class="checkbox" <?=(!$result['configflag'] ? 'checked="checked"' : '')?> /><label for="visible0">关闭</label>
      </td>
    </tr>
   <tr>
      <td nowrap class="TableData"> 关闭原因：</td>
      <td class="TableData">
        <textarea name="closereason" rows="5" cols="50"><?=$result['closereason']?></textarea>
      </td>
    </tr>
 
   
    <tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;工作时间</b></td>
    </tr>
 
    <tr>
      <td nowrap class="TableData"> 工作时间：</td>
      <td class="TableData">
        <select name="swork" style="width:80px;">
			<?php 
			for($i=0;$i<=24;$i++)
			{
				echo '<option value="'.$i.'"  ';
				if ($result['swork']==$i)
				{
				echo 'selected="selected"';
				}
				echo '>'.$i.'</option>';
			}
			?>
			  </select>
			到：
		  <select name="ework" style="width:80px;">
			<?php 
			for($i=0;$i<=24;$i++)
			{
				echo '<option value="'.$i.'"  ';
				if ($result['ework']==$i)
				{
				echo 'selected="selected"';
				}
				echo '>'.$i.'</option>';
			}
			?>
			  </select> 点 <span>指公司正常上下班时间，员工打卡就按此时间执行</span>
      </td>
    </tr>

    
 
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">
        <input type="submit" value="保存修改" class="BigButton">
      </td>
    </tr>
  </table>
</form>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
